package demo3;

class Person {
    public String name;
    public int age;

    public void show() {
        System.out.println("姓名:" + name + "  年龄" + age);
    }
}

public class Test {
    public static void main(String[] args) {
        Person person1 = new Person();
        person1.name = "张三";
        person1.age = 22;
        person1.show();
        Person person2 = new Person();
        person2.name = "李四";
        person2.age = 23;
        person2.show();
    }
}
